package javabook.ch09;

class ThreadDouble extends Thread {
	public void ThreadTest(String str){
		super(str);
	}
	public void run(){
		try{
			for(int i=0; i<10; i++){
				Thread.sleep(2);
			System.out.println(i+getName());
			}
			System.out.println("��"+getName());
		}
		catch(InterruptedException e){
			System.out.println(e);
		}
	}
}

class ThreadDouble{
	public static void main(String arg[]){
		ThreadTest t1 = new ThreadTest(" : ���� ���� �ڹ�");
		ThreadTest t2 = new ThreadTest(" : ���� ����� �ڹ�");
		t1.start();
		t2.start();
		
	}
}
